package com.gitee.kamismile.stone.basic.data.domain.sysDep.service;

import com.gitee.kamismile.stone.basic.data.domain.sysDep.repository.entity.SysDep;
import com.gitee.kamismile.stone.basic.data.domain.sysdic.repository.entity.SysDictionary;
import org.springframework.data.domain.Page;
import org.springframework.data.relational.core.query.Criteria;
import reactor.core.publisher.Mono;

public interface ISysDepDomainService {

    public Mono<SysDep> saveOrUpdate(SysDep sysDep);

    Mono<Void> deleteDepById(Integer nSysDepId);

    public Mono<Page<SysDep>> findDepPage(int page, int size,
                                                                    Criteria criteria);

    public Mono<SysDep> findDepById(Integer nSysDepId,Integer nTenantId);


    public Mono<SysDep> findAndCheckDepById(Integer nSysDepId,Integer nTenantId);

    Mono<Integer> modifyIslast(Integer nSysDepId, Integer nTenantId);

}
